package zhouyang.Assert.setterinjection;

import org.springframework.stereotype.Component;

/**
 * @author: 叶子
 * @date: 2022/03/02 12:55
 * 演示set注入解决循环依赖
 **/
@Component
public class ServiceAA {
    private ServiceBB serviceBB;

    public void setServiceBB(ServiceBB serviceBB) {
        this.serviceBB = serviceBB;
        System.out.println("AA里面设置了BB");
    }
}